Feature: User adds product to the card
File name: addtoCart.feature
Relative path: features/addtoCart.feature
Given
user navigates to the application
And
user clicks on the login link
Given
user enter the username as "ortoni"
And
user enter the password as "pass1234$"
And
user click on the login button
locator.click: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('mat-option[role=\'option\']')
============================================================
at World.(anonymous) (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:50:110)
at step (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:33:23)
at Object.next (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:14:53)
at fulfilled (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:5:58)
When
user adds the book to the cart
Then
the cart badge should get updated
Given
user navigates to the application
And
user clicks on the login link
Given
user enter the username as "ortonikc"
And
user enter the password as "pass1234"
And
user click on the login button
locator.click: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('mat-option[role=\'option\']')
============================================================
at World.(anonymous) (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:50:110)
at step (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:33:23)
at Object.next (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:14:53)
at fulfilled (/home/runner/work/Playwright_Cucumber_TS/Playwright_Cucumber_TS/src/tests/steps/addtoCartSteps.ts:5:58)
When
user adds the book to the cart
Then
the cart badge should get updated